package com.yzyz.bean.scenic;

import java.util.List;

import com.yzyz.bean.BaseBean;
import com.yzyz.bean.route.RouteBean;

/**
 * 景区,一个景区可以包含多个景点，景区应该属于某个组，景区应该和某些线路关联
 * @author David Sun
 * @Date   2010-4-7
 *
 */
public class ScenicBean extends BaseBean {
	@Override
	public boolean equals(Object obj) {
		if(obj == null){
			return false;
		}
		if(obj instanceof ScenicBean){
			ScenicBean scenic = (ScenicBean)obj;
			if(scenic.getId() == this.id){
				return true;
			}
		}
		return false;
	}

	private static final long serialVersionUID = 8227665548035362060L;
	
	private int ownerId;
	
	private String location;
	
	private int status;
	
	private DescriptionBean description;
	
	private List<RouteBean> routes;
	
	private List<AttractionsBean> attractions;
	
	private String keyWords;
	
	private List<PictureBean> pictures;

	public List<PictureBean> getPictures() {
		return pictures;
	}

	public void setPictures(List<PictureBean> pictures) {
		this.pictures = pictures;
	}

	public String getKeyWords() {
		return keyWords;
	}

	public void setKeyWords(String keyWords) {
		this.keyWords = keyWords;
	}

	public List<AttractionsBean> getAttractions() {
		return attractions;
	}

	public void setAttractions(List<AttractionsBean> attractions) {
		this.attractions = attractions;
	}

	public List<RouteBean> getRoutes() {
		return routes;
	}

	public void setRoutes(List<RouteBean> routes) {
		this.routes = routes;
	}

	public DescriptionBean getDescription() {
		return description;
	}

	public void setDescription(DescriptionBean description) {
		this.description = description;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public String getLocation() {
		return location;
	}

	public void setLocation(String location) {
		this.location = location;
	}
	
	public String getLocaton() {
		return location;
	}

	public void setLocaton(String location) {
		this.location = location;
	}

	public int getOwnerId() {
		return ownerId;
	}

	public void setOwnerId(int ownerId) {
		this.ownerId = ownerId;
	}
	
	public ScenicBean(ScenicBean scenic) {
		this.attractions = scenic.getAttractions();
		this.available = scenic.isAvailable();
		this.date = scenic.getDate();
		this.description = scenic.getDescription();
		this.id = scenic.getId();
		this.level = scenic.getLevel();
		this.location = scenic.getLocation();
		this.name = scenic.getName();
		this.ownerId = scenic.getOwnerId();
		this.routes = scenic.getRoutes();
		this.status = scenic.getStatus();
	}
	
	public ScenicBean(){
		
	}
}
